module.exports = {
  // 数据库连接配置
  host: 'localhost',
  user: 'root',
  password: '123456',  
  database: 'book_sharing',
  port: 3306,
  charset: 'utf8mb4',
  
  // 连接池配置
  waitForConnections: true,
  connectionLimit: 10,
  queueLimit: 0,

  // 开发环境配置
  development: {
    debug: true,
    multipleStatements: true
  },

  // 测试环境配置
  test: {
    debug: false,
    multipleStatements: true
  },

  // 生产环境配置
  production: {
    debug: false,
    multipleStatements: false
  }
}; 